package com.tedu.bill;

/**
 * Author：毕龙
 * Date: 2024/3/17 16:47
 */
public class TestOperatorLogic {
    public static void main(String[] args) {

        System.out.println(true && true);//true
        System.out.println(true && false);//false
        System.out.println(false && true);//false
        System.out.println(false && false);//false

        int a = 10;
        int b = 3;
        System.out.println( a > b && a++ == b);//false
        System.out.println(a);//11

        //测试短路
        System.out.println(a < b && a++ > b++);//false
        System.out.println(a);// 11
        System.out.println(b);//  3

    }
}
